package com.errol.batchprocessor.employeeaddition.advisorimpl.employee.payload;

import com.renjia.entity.CoreEmployeeCustomerTmp;
import com.renjia.enums.DocumentTypeEnum;
import com.renjia.service.module.employeeaddition.advisorimpl.common.payload.AbstractEmployeeSinglePayload;

/**
 * 人员导入单条记录数据
 *
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/03/01
 * @since v5.0.6
 **/
public class EmployeeListSinglePayload extends AbstractEmployeeSinglePayload<CoreEmployeeCustomerTmp> {
    public EmployeeListSinglePayload(CoreEmployeeCustomerTmp singleEntity) {
        super(singleEntity, singleEntity.getEmployeeName(), DocumentTypeEnum.getEnumByCode(singleEntity.getDocumentType()),
                singleEntity.getDocumentNumber(), singleEntity.getCardNo(), singleEntity.getMobile());
    }
}
